/**
 * Axelor Business Solutions
 *
 * Copyright (C) 2005-2021 Axelor (<http://axelor.com>).
 *
 * This program is free software: you can redistribute it and/or  modify
 * it under the terms of the GNU Affero General Public License, version 3,
 * as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
.slickgrid {
  background: white;
  outline: 0;
  border: 1px solid #DDD;
  border-top: 0 !important;
}

.slickgrid,
.slickgrid * {
    box-sizing: border-box;
}

.slickgrid .slick-header,
.slickgrid .slick-header-column {
  color: #333;
  background: #fff;
  background-image: none;
}

.slickgrid .slick-header {
  border: 0;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.slickgrid .slick-header-column {
  border-right: 1px solid #ddd;
}

.slickgrid .slick-header-column:last-child {
  border-right-color: transparent;
}

.slickgrid-empty .slick-header,
.slickgrid-empty .slick-headerrow {
  height: 0;
  border-bottom: none;
}

.slickgrid .slick-cell,
.slickgrid .slick-header-column {
  -webkit-box-sizing: content-box;
     -moz-box-sizing: content-box;
      -ms-box-sizing: content-box;
          box-sizing: content-box;
}

.slick-row {
  background: #fff;
  border-bottom: 1px solid #e7eaec !important;
}
.slick-row.odd {
    background: #fff;
}

.slick-row:hover {
    background: #f5f5f5;
}

.slick-row .slick-cell {
  border: 0;
  padding: 2px 8px;
}

.slick-row .slick-cell {
  box-sizing: border-box;
  line-height: 24px;
  height: 100% !important;
}


.slick-row.active,
.slick-row.selected,
.slick-row .slick-cell.selected {
    background-color: #e7e7e7;
}

.slick-row .slick-cell.text,
.slick-row .slick-cell.html {
  white-space: pre-wrap;
  word-wrap: break-word;
}

.slick-row .slick-cell.selected.active::after {
  content: " ";
  display: block;
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  border: 1px dotted #76849c;
  z-index: -1;
}

.slickgrid-editable .slick-row.active .slick-cell-editable:before {
  content: " ";
  display: block;
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  border: 1px solid #8080ff;
  background-color: #fff;
  z-index: -1;
}

.slickgrid-editable .slick-row.active .slick-cell-required:before {
  background-color: #d2d2ff;
}

.slick-headerrow {
  height: 26px;
  border: 0 !important;
  border-bottom: 1px solid #ddd !important;
  background: #fff !important;
  background-image: none !important;
}

.slick-headerrow-columns .slick-headerrow-column {
  background: #f9f9f9;
}

.slick-headerrow-column {
  height: 26px;
  border: none !important;
  border-right: 1px solid #ddd !important;
  background: #f5f5f5;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
       box-sizing: border-box;
}

.slick-headerrow-column:last-child {
  border-right: transparent !important;
}

.slick-headerrow input {
  margin: 0;
  padding: 2px 8px;
  width: 100%;
  height: 100%;
  outline: 0;
  border: none;
  border-radius: 0;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  box-shadow: none !important;
}


.slick-headerrow i.combo-icon {
  position: absolute;
  font-size: 14px;
  top: 5px;
  right: 6px;
}

.slick-header-column.ui-state-default {
  height: inherit;
  line-height: inherit;
  padding: 5px 8px;
  font-weight: 600;
}

.slick-headerrow-column.ui-state-default {
  padding: 0px;
}

.slick-cell-checkboxsel .ibox .box {
  width: 18px;
  height: 18px;
}

.slick-cell-checkboxsel .ibox input:checked + .box:after {
  top: 4px;
  left: 3px;
}

.slick-cell.slick-cell-checkboxsel {
  padding: 5px;
}

.slick-cell-checkboxsel .ibox {
  float: left;
}

.slick-header-column.slick-cell-checkboxsel .ibox {
  margin-left: -3px;
}

.slick-cell.editable {
  background: white;
  padding: 0;
}

.slick-editor {
  box-sizing: border-box;
  line-height: 24px;
  height: 100% !important;
}

.slick-editor input,
.slick-editor .picker-input,
.slick-editor .ui-spinner,
.slick-editor [x-field] {
  outline: 0;
  margin: 0;
  padding: 0;
  border-radius: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100% !important;
  min-width: inherit !important;
  min-height: 26px;
}

.slick-editor .picker-input {
  width: 100% !important;
}

.slick-editor .picker-input.image-select > img,
.slick-editor .picker-input.image-select > i.fa {
  padding-left: 6px;
}
.slick-editor .picker-input.image-select > input {
  padding-left: 20px !important;
}

.slick-editor .ui-spinner {
  border: none;
}

.slick-editor input {
  padding-left: 6px !important;
}

.slick-editor textarea {
  border-radius: 0;
  margin: 0;
  outline: 0;
}

.slick-editor .text-item {
  height: auto !important;
}

.slick-editor .picker-input > .picker-icons > i.fa {
  padding-top: 2px !important;
}

.slick-editor input[type=checkbox],
.slick-editor .form-item-container input[type=checkbox] {
  width: auto;
  height: auto;
  margin-top: 0 !important;
}

.slick-editor .form-item-container.boolean-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #ddd;
}

.slick-editor .form-item-container > .ibox {
  margin: 2px 3px !important;
  width: auto;
}

.slick-editor .form-item-container > .ibox > input {
  margin-left: 0 !important;
  width: 20px !important;
  height: 20px !important;
  min-height: auto !important;
  z-index: 1;
}

.slick-editor-dropdown {
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  min-width: 250px;
}

.ui-dialog [ui-dialog] > .slickgrid {
  position: absolute;
  top: -1px; right: 0; bottom: -4px; left: 0;
  border: 0;
}

.ui-dialog .slick-editor-dropdown .slickgrid {
  position: relative;
  top: 0; right: 0; border: 0; left: 0;
}

.slick-editor-dropdown.textarea {
  display: 'flex';
  flex-direction: column;
  min-width: inherit;
}

.slick-editor-dropdown.textarea textarea {
  flex: 1;
  margin: 0;
}

.slick-editor-dropdown.textarea.html {
  min-height: 147px;
}

.slick-editor-dropdown .wysiwyg-container {
  background: white;
  width: 100%;
  height: 100%;
  display: flex;
  flex-flow: column;
}

.slick-editor-dropdown .wysiwyg-editor {
  height: 100%;
  overflow: scroll;
  overflow-x: hidden;
  flex: 1;
}

.slickgrid-editable .slick-row.active .slick-cell-editable.dirty:before,
.slick-cell.dirty {
  background-image: url('../img/dirty.gif');
  background-position: 0 0;
  background-repeat: no-repeat;
}

.slick-editor .input-append > button {
  display: none;
}

.slick-editor * {
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
      -ms-box-sizing: border-box;
          box-sizing: border-box;
}

.slick-cell.button img {
  cursor: pointer;
}

.slick-cell.button .disabled,
.slick-editor .form-item-container.button-item.disabled {
  outline: none;
  opacity: 0.45;
  cursor: inherit;
}

.slick-editor .form-item-container.button-item:hover {
  text-decoration: none;
}

.slick-cell.button,
.slick-cell-checkboxsel {
  text-align: center;
}

.slick-cell-checkboxsel input {
  width: inherit;
  margin-top: -2px;
}

.slick-cell .progress {
  margin: 3px 0 0;
}

.slick-editor .progress-item {
  padding: 3px;
  margin-top: 2px !important;
}

.slick-group > .slick-cell,
.slick-group > .slick-cell-checkboxsel {
   text-align: inherit;
}

.slick-header-column.integer,
.slick-header-column.decimal,
.slick-cell.integer,
.slick-cell.decimal {
  text-align: right;
}

.slick-header-column.boolean,
.slick-cell.boolean {
  text-align: center;
}

.slick-cell.boolean .fa {
  box-sizing: content-box;
  border: 1px solid #ccc;
  padding: 2px;
  width: 14px;
    height: 14px;
}

.slick-headerrow input::-webkit-input-placeholder {
  font-size: 11px;
}

.slick-headerrow input::-moz-placeholder {
  font-size: 11px;
}

.slick-headerrow input::-ms-input-placeholder {
  font-size: 11px;
}

.slick-group-toggle {
  width: 9px;
  height: 9px;
  margin-right: 5px;
}

.slick-group-toggle.collapsed {
  background: url(../lib/slickgrid/images/expand.gif) no-repeat center center;
}

.slick-group-toggle.expanded {
  background: url(../lib/slickgrid/images/collapse.gif) no-repeat center center;
}

.slick-group-text,
.slick-group-count {
  font-weight: 600;
}

.slick-group-count {
  color: green;
}

.slick-group {

}

.slick-group-totals {
  font-weight: 600;
}

.slick-group-totals,
.slick-group-totals .slick-cell {
  background-color: #e9e9e9;
}

.slick-sort-indicator {
  margin-left: 7px;
}

.slick-sort-indicator-asc,
.slick-sort-indicator-desc {
  display: inline-block;
}

.slick-header-menu {
  z-index: 1150;
  padding: 0;
  min-width: 100px;

  border: 1px solid rgba(0, 0, 0, 0.2);
  background: #fff;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);

  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}

.slick-header-menuitem {
  padding: 2px 4px;
  padding-right: 20px;
  border: 1px solid transparent;
}

.slick-header-menu > div:first-of-type {
  margin-top: 4px;
}

.slick-header-menu > div:last-of-type {
  margin-bottom: 4px;
}

.slick-header-menuitem:hover {
  color: #fff;
  background-color: #0081c2;
}

.slick-header-menusep {
  margin: 4px 1px;
  background-color: #e5e5e5;
  border-bottom: 1px solid #ffffff;
}

.slick-header-menubutton {
  width: 16px;
  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
}

.slick-cell:not(.button) > a {
  color: #0088cc;
}

.slick-cell.edit-icon i,
.slick-cell i.slick-icon {
  cursor: pointer;
}

.slick-cell.move-icon {
  cursor: move;
}
.panel-related.readonly .slick-cell.move-icon {
  cursor: default;
}
.panel-related.readonly .slick-cell.move-icon::before {
  content: "";
}

.slickgrid-empty-text {
  display: none;
}

.slickgrid-empty-message .slickgrid-empty-text {
  display: block !important;
  position: absolute;
  top: 48%;
  width: 100%;
  font-weight: 400;
  text-align: center;
}

.slickgrid-empty-message .grid-canvas {
  box-sizing: border-box;
}

.slickgrid-overlay,
.slickgrid-edit-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: #ddd;
  opacity: 0.25;
  z-index: 2;
}

.slick-form {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: inherit !important;
  left: 0;
  width: 100%;
  z-index: 3;
}

.slick-form.slick-form-flip {
  flex-direction: column-reverse;
}

[ui-slick-editors] {
  background-color: #e7e7e7 !important;
}

.slick-editor {
  position: relative;
  display: flex;
  flex: 1;
  background: #fff;
  padding: 0;
  margin: 0;
  background: #e7e7e7;
  align-items: center;
}

.slick-editor .form-item-container {
  display: flex;
  align-items: center;
}

.slick-editor .form-item-container,
.slick-editor .form-item-container > span.display-text {
  background: white;
  margin: 1px 1px 1px 0;
  min-height: inherit !important;
  line-height: 18px;
}

.slick-editor .form-item-container > span.display-text {
  padding: 1px;
  min-height: 26px !important;
  white-space: nowrap;
  border: 1px solid #ddd;
}

.slick-editor .form-item-container > span.display-text > * {
  overflow: hidden;
}

.slick-editor .form-item-container > * {
  width: inherit;
  flex: 1;
}

.slick-editor .form-item-container pre {
  height: 24px;
  line-height: 24px;
  overflow: hidden;
  padding-top: 0px;
}

.slick-editor .form-item-container.readonly,
.slick-editor .form-item-container.readonly > span.display-text {
  background-color: #e7e7e7;
}

.slick-editor .form-item-container.button-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.slick-editor .form-item-container.button-item > i {
  flex: unset;
}

.slick-editor .form-item-container.button-item > .btn-text {
  flex: 0;
}

.slick-editor .form-item-container.button-item i.fa {
  width: auto;
}

.slick-editor .form-item-container.time-item > input.ui-mask {
  text-align: right;
}

.slick-editor .form-item-container.phone-item .phone-validation {
  display: none;
}

.slick-editor input,
.slick-editor textarea {
  border-color: #ddd;
}

.slick-form-buttons-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slick-form-buttons {
  background: #e7e7e7;
  padding: 4px 4px 6px;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  position: absolute;
  white-space: nowrap;
}

.slick-form-flip .slick-form-buttons {
  top: -38px !important;
}

.slick-form-buttons button {
  margin: 0 2px;
}

.slick-form.slick-form-flip .slick-form-buttons {
  padding: 6px 4px 4px;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: 1px -1px 2px rgba(0, 0, 0, 0.2);
}

.slick-form .iti__flag-container {
  border: 1px solid #ddd;
}
